package com.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.base.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统日志
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_log")
public class SysLog extends BaseEntity {

    /**
     * 用户ip
     */
    @TableField("ip")
    private String ip;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 操作方法
     */
    @TableField("method")
    private String method;

    /**
     * 详情
     */
    @TableField("info")
    private String info;

    /**
     * 状态
     */
    @TableField("state")
    private String state;

    public SysLog(String ip, String title, String method) {
        this.ip = ip;
        this.title = title;
        this.method = method;
    }
    public SysLog() {}
}
